package com.atlzk.common.utils;

import java.util.HashMap;

/**
 * @author King
 * @date 2021/6/19 - 12:41
 */
public class ResultMessage {

     HashMap <String, Object> map = new HashMap <>();

    public static HashMap <String, Object> success(String msg) {
        HashMap <String, Object> map = new HashMap <>();
        map.put("code", 200);
        map.put("msg", msg);
        return map;
    }

    public static HashMap <String, Object> fail(String msg) {
        HashMap <String, Object> map = new HashMap <>();
        map.put("code", 300);
        map.put("msg", msg);
        return map;
    }


}
